package com.zhny.aiot.dx.zb.video.plugin;

import com.zhny.aiot.plugin.Field;
import com.zhny.aiot.plugin.core.plugin.AbstractConfig;

public class VideoConfig extends AbstractConfig {
    @Field(alias = "url",description="开放平台获得")
    private String url;

    @Field(alias = "鉴权令牌",description = "开放平台获得")
    private String accessToken;

    @Field(alias = "设备码",description = "开放平台获得")
    private String deviceCode;
    @Field(alias = "监控地址",description = "开放平台获得")
    private String monitorAddress;

    @Field(alias = "本地地址",description = "")
    private String localAddress;
    @Override
    public String toKey() {
        return super.toKey (this.accessToken,this.deviceCode);
    }

    public void setMonitorAddress(String monitorAddress) {
        this.monitorAddress=monitorAddress;
    }
    public String getMonitorAddress() {
        return this.monitorAddress;
    }

    public String getLocalAddress() {
        return localAddress;
    }

    public void setLocalAddress(String localAddress) {
        this.localAddress=localAddress;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url=url;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken=accessToken;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode=deviceCode;
    }
}
